package com.isoft.entity.tableentity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import java.io.Serializable;
import java.sql.Timestamp;

@Data
@JacksonXmlRootElement(localName = "META")
@XmlAccessorType(XmlAccessType.FIELD)
public class Meta implements Serializable {
    @JacksonXmlProperty(localName = "SNDR")
    private String sndr;
    @JacksonXmlProperty(localName = "RCVR")
    private String rcvr;
    @JacksonXmlProperty(localName ="SEQN")
    private int seqn;
    @JacksonXmlProperty(localName ="DDTM")
    @JsonFormat(pattern = "yyyyMMddHHmmss")
    private Timestamp ddtm;
    @JacksonXmlProperty(localName= "TYPE")
    private String type;
    @JacksonXmlProperty(localName= "STYP")
    private String styp;
}